package example;

public class ClassWithThreadingProblem {
    int commonValue;

    int nextValue() {
        return commonValue++;
    }

    int currentValue() {
        return commonValue;
    }
}
